package cn.wenjie.gd.service;

import java.util.List;

import cn.wenjie.gd.dao.UserDao;
import cn.wenjie.gd.dao.UserDaoImp;
import cn.wenjie.gd.domain.Role;
import cn.wenjie.gd.domain.User;
import cn.wenjie.gd.util.UserPage;
import cn.wj.base.dao.BaseDao;
import cn.wj.base.service.BaseServiceImp;

public class UserServiceImp  extends BaseServiceImp<User,Integer>  implements UserService{
	private UserDao userDao=new UserDaoImp();
	@Override
	public BaseDao<User, Integer> getBaseDao() {
		return userDao;
	}
	
	@Override
	public User findUser(String loginName, String password) {
		return userDao.findUser(loginName, password);
	}
	@Override
	public boolean checkUserName(String login_name) {
		return userDao.checkUserName(login_name);
	}

	@Override
	public List<Role> getAllRole() {
		return userDao.getAllRole();
	}

	@Override
	public UserPage getPageList(UserPage page) {
		return userDao.getPageList(page);
	}

	@Override
	public List<User> getAllMember() {
		// TODO Auto-generated method stub
		return userDao.getAllMember();
	}
}
